{{include file='header.htm' title= $albumname-相册}}
<style type="text/css">
@import url(css/photos.css);
</style>
<script type="text/javascript">
    <!--
    
    $(function () {
        $('textarea.limited').maxlength({
            'feedback' : '.charsLeft', 
			'useInput' : true
        });
    });
    
    //-->
</script>
<DIV id=content>
	<DIV id=heading>
		<H1>
						<div class="avatar1">
							<a href="index.php?&m=profile&a=view&userid={{$albumdata.user_id}}"><img src="avatar.php?uid={{$albumdata.user_id}}" alt="zwtxdy" class="avatar" /></a>
						</div>
 			{{if $smarty.session.user_id == $albumdata.user_id}}
 			<A href="index.php?m=album&a=albumlist">我的相册</A> /{{$albumdata.albumname}}
			{{else}}
			<A href="index.php?m=album&a=albumlist&userid={{$albumdata.user_id}}">{{$username}}相册</a>/{{$albumdata.albumname}}
			{{/if}}		
 		</H1>
		<DIV class=clear></DIV>
	</DIV>
	<DIV class=clear></DIV>
	<DIV id=container>
		<DIV class=albumView-right>
			{{if $smarty.session.user_id ==$albumdata.user_id}}
			<DIV id=albumViewHeading>
				<A class=tab title=编辑相册 href="index.php?m=album&a=edit&albumid={{$albumdata.album_id}}">编辑</A> 
				<A class="tab delete" title=删除此相册 onclick="return window.confirm('删除此相册?');" href="index.php?m=album&a=delete&albumid={{$albumdata.album_id}}">删除此相册<LABEL class=left-tab>&nbsp;</LABEL><LABEL class=right-tab>&nbsp;</LABEL></A>
			</DIV>
		</DIV>
			{{/if}}
		<DIV id=albumPhotographerView>
			<TABLE id=albumDescription width="100%">
			  <TBODY>
			  <TR>
			    <TD vAlign=top width="100%">
			      <DIV class=albumCoverThumb>
			      	<A href="">
			      <DIV class=SetCase>	<IMG class=Photo id=cover_photo_img width=75px height=75px src="upload/{{$albumdata.thumburl}}.thumb.jpg"></A>
			    </DIV>	
			      </DIV>
				     <DIV class=albumDetail>
				     	<SPAN class=albumOwner id=albumtitle style='font-weight:bold'> {{$albumdata.albumname}}</SPAN>
				      <DIV class=albumstat>({{$albumdata.photos_count}}张照片,{{$albumdata.aviewnum}}次浏览,{{$albumdata.acomment_num}}条评论)</DIV>
				      <DIV id=adescription>{{$albumdata.adescription}}</DIV>
				      <DIV class=clear></DIV>
			      </DIV>
			      <DIV class=clear></DIV>
			  	</TD>
			  </TR>
				</TBODY>
			</TABLE>
<div id=archiveDetailView width="100%">
			{{ section name=plist loop=$photodata }}
			  	<li class=PhotoGrid>
			    	<DIV class=StreamView>
			    		<DIV>
			    			<DIV id="phototitle">
			    				<div class="small-title-display" style="display: block;FONT-WEIGHT: bold;"> 
			          		{{$photodata[plist].title}}
			          	</div>
			          	</DIV>
			          	<DIV class="lightbox lb[home] Photo" style="position:relative;">
			          		<A href="index.php?m=photo&a=photo_view&photoid={{$photodata[plist].photo_id}}">
			          			<IMG src="upload/{{$photodata[plist].url}}.thumb.jpg" ></A> 
			          	</DIV>
			          </div>
			          <DIV class=DateTime>
			          	上传于 <A class=plain href="#">{{$photodata[plist].created|date_format:"%Y-%m-%e"}}</A> 
			          </DIV>
			          <DIV class=Activity>
			          	<B>{{$photodata[plist].pviewnum}}</B>浏览 / <B>{{$photodata[plist].pcomment_num}}</B>评论
			          </DIV>
			         </DIV>
							</li>
			        {{/section}}
</div>
			<DIV class=page>{{$photomulti}}</DIV>
			<DIV class=clear></DIV>
		</DIV>
		<div class="photocomment">	
			<div class="comments_list" id="comment">
				<ul id="comment_ul">
					{{section name=clist loop=$commentdata }}	
					<li>
						<div class="avatar1">
							<a href="index.php?&m=profile&a=view&userid={{$commentdata[clist].authorid}}"><img src="avatar.php?uid={{$commentdata[clist].authorid}}" alt="zwtxdy" class="avatar" /></a>
						</div>
						<div class="title">
														<div class="r_option">
									{{if $smarty.session.user_id == $commentdata[clist].uid}}
<a href='index.php?m=comment&a=delete&cid={{$commentdata[clist].comment_id}}&id={{$commentdata[clist].id}}&idtype=2'>删除</a>
{{/if}}
							</div>
							<a href="index.php?m=profile&a=view&userid={{$commentdata[clist].authorid}}" id="author_1">{{$commentdata[clist].author}}</a> 于<span class="time">{{$commentdata[clist].created|date_format:'%Y-%m-%e'}}</span>说
						</div>
						<div class="detail" id="comment_1">{{$commentdata[clist].message}}</div>
					</li>
				{{/section}}			
				</ul>
			</div>
			<div class="page">{{$commentmulti}}</div>
			<DIV id=commentMaker>
				<H3><A name=reply></A>我来说两句</H3>
				<form id=commentForm name=commentForm action='index.php?m=comment&a=post' method=post>
				<INPUT type=hidden value={{$albumdata.album_id}} name=albumid>
				<input type=hidden value=2 name=idtype>
				<P><textarea id=comment_content class='limited' name=pcomment rows=8></textarea> 
				<br />  还可以输入 <span class="charsLeft">200</span> 个字符       
				<input type="hidden" name="maxlength" value="200" />
				</P>
				<P><INPUT class=Btn tabIndex=2 type=submit value=直接发表></P>
				</FORM>
			</DIV>
		</div>
</DIV>
<DIV class=clear></DIV></DIV></DIV>
{{include file='footer.htm'}}
